# name = 'lisi' 默认值
def saysome(name = 'lisi',words = 'hi'):
    print(name + "->" + words)

saysome()
saysome(words="hello",name="zhangsan")

# 可变参数
def test(*params):
    for param in params:
        print('第%d个参数是%s类型，值是:%s' %(params.index(param),type(param),param))
test('zhangsan','hello',999)

count = 100
def myfun():
    # 加了 global 才能个性全局变量
    global count
    count = 50

myfun()
print(count)